package edu.hunau.cxb19.oop.class08.inner;

import org.junit.Test;

/**
 * 静态内部类
 * 
 * @author hb
 *
 *         2020-03-04 16:10:42
 */
public class StaticInnerClass {
	private static String datas = "from outer class";
	//private int =100;

	public static void outerCall() {
		System.out.println("Outter class#call....");
	}
	/**
	 * 静态内部类
	 */
	public static class InnerClass {
		private int a=100;

		public void call() {
			System.out.println(a);
			System.out.println(datas);
			System.out.println("静态内部类的call方法。。。");
			outerCall();
		}
	}
	@Test
	public void test01() {
		InnerClass innerClass = new StaticInnerClass.InnerClass();
		innerClass.call();
		
	}
}
